package _example

import (
	"honeyweb/lib"
	"honeyweb/model"
)
var uid = 66
func TestRegister(){
	params := &model.WalletRegisterReq{
		Uid: uid,
		Gold: 1,
		Diamond: 200,
		Score: 3,
	}
	var result model.WalletRegisterResp
	lib.RPCClientRequest("wallet.register", params, &result)
}


func TestGet() {
	params := &model.WalletGetReq{
		Uid: uid,
	}
	var result model.WalletGetResp
	lib.RPCClientRequest("wallet.get", params, &result)
}


func TestAddGold() {
	params := &model.WalletAddGoldReq{
		Uid: uid,
		Value: 100,
		Kind: "hahah",
		Desc: "",
	}
	var result model.WalletAddGoldResp
	lib.RPCClientRequest("wallet.addGold", params, &result)
}

func TestSubGold() {
	params := &model.WalletSubGoldReq{
		Uid: uid,
		Value: 101,
		Kind: "hahah",
		Desc: "",
	}
	var result model.WalletSubGoldResp
	lib.RPCClientRequest("wallet.subGold", params, &result)
}

func TestSubMutableGold() {
	params := &model.WalletSubMutableGoldReq{
		Uid: uid,
		Value: 101,
		Kind: "hahah",
		Desc: "",
	}
	var result model.WalletSubMutableGoldResp
	lib.RPCClientRequest("wallet.subMutableGold", params, &result)
}

func TestAddDiamond() {
	params := &model.WalletAddDiamondReq{
		Uid: uid,
		Value: 101,
		Kind: "hahah",
		Desc: "gaga",
	}
	var result model.WalletAddDiamondResp
	lib.RPCClientRequest("wallet.addDiamond", params, &result)
}

func TestSubDiamond() {
	params := &model.WalletSubDiamondReq{
		Uid: uid,
		Value: 50,
		Kind: "hahah",
		Desc: "",
	}
	var result model.WalletSubDiamondResp
	lib.RPCClientRequest("wallet.subDiamond", params, &result)
}

func TestSubMutableDiamond() {
	params := &model.WalletSubMutableDiamondReq{
		Uid: uid,
		Value: 60,
		Kind: "hahah",
		Desc: "",
	}
	var result model.WalletSubMutableDiamondResp
	lib.RPCClientRequest("wallet.subMutableDiamond", params, &result)
}

func TestAddScore() {
	params := &model.WalletAddScoreReq{
		Uid: uid,
		Value: 101,
		Kind: "hahah",
		Desc: "gaga",
	}
	var result model.WalletAddScoreResp
	lib.RPCClientRequest("wallet.addScore", params, &result)
}

func TestSubScore() {
	params := &model.WalletSubScoreReq{
		Uid: uid,
		Value: 50,
		Kind: "hahah",
		Desc: "",
	}
	var result model.WalletSubScoreResp
	lib.RPCClientRequest("wallet.subScore", params, &result)
}

func TestSubMutableScore() {
	params := &model.WalletSubMutableScoreReq{
		Uid: uid,
		Value: 60,
		Kind: "hahah",
		Desc: "",
	}
	var result model.WalletSubMutableScoreResp
	lib.RPCClientRequest("wallet.subMutableScore", params, &result)
}

